package com.qdlc.p2p.dal.mybatis.model.mapper;

import com.qdlc.p2p.dal.dto.CashAwardRule;
import com.qdlc.p2p.dal.model.CashAwardRuleModel;

import java.util.List;


/**
 * Created by hongbinglin on 2016/5/16.
 */
public interface CashAwardRuleMapper {

    List<CashAwardRule> findByModel(CashAwardRuleModel model);

    int toggleStatus(CashAwardRuleModel model);

    int insert(CashAwardRule cashAwardRule);

    CashAwardRule findById(long id);

    int update(CashAwardRule cashAwardRule);

    List<CashAwardRule> findByStatus(int status);

}
